package com.hellogood.yaohuo.shared.services;

import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.hellogood.yaohuo.shared.entity.Form;
import com.hellogood.yaohuo.shared.entity.Ziyou;
import com.hellogood.yaohuo.shared.entity.ZyForm;

public interface ZiyouServiceAsync {

	void getAllZiyou(AsyncCallback<List<Ziyou>> callback);

	void createZiyou(Ziyou zy, AsyncCallback<String> callback);

	void modifyZiyou(Ziyou zy, AsyncCallback<String> callback);

	void getMaxCode(AsyncCallback<String> callback);

	void saveForm(ZyForm form, boolean isModify, AsyncCallback<String> callback);

	void bankForm(List<String> bills, AsyncCallback<String> callback);

	void deleteForm(String billNo, AsyncCallback<String> callback);

	void getFormDetail(String billNo, AsyncCallback<Form> callback);

	void getLastZyBillNo(AsyncCallback<String> callback);

	void searchZiyouFormByOrgCodeAndDate(String orgCode, int level, String startDate, String endDate, String rz, AsyncCallback<List<Form>> callback);

}
